package com.dzj.fishingcommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dzj.fishingcommunity.model.Order;

public interface OrderService extends IService<Order> {

    /**
     * 查询商品库存是否足够
     * @param order
     * @return
     */
    boolean isStockEnough(Order order);

    /**
     * 删除订单
     * @param id
     * @return
     */
    Boolean deleteOrder(Long id);
}